package com.yoomiito.app.ui.my.stock


import android.text.TextUtils
import androidx.constraintlayout.widget.ConstraintLayout
import android.view.View
import android.widget.ImageView
import android.widget.TextView

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yoomiito.app.R
import com.yoomiito.app.model.bean.OrderInfo
import com.yoomiito.app.model.bean.StockInfo
import com.yoomiito.app.utils.AllCode
import com.yoomiito.app.utils.ImageLoader
import com.yoomiito.app.utils.ResUtil
import com.yoomiito.app.utils.SpannableUtils

class StockAdapter(data: List<StockInfo>?) : BaseQuickAdapter<StockInfo, BaseViewHolder>(R.layout.item_stock, data) {

    override fun convert(helper: BaseViewHolder, item: StockInfo) {
        val goodsTitleTv = helper.getView<TextView>(R.id.item_goods_order_title)
        goodsTitleTv.text = item.bizName
        val orderDateTv = helper.getView<TextView>(R.id.item_mobile)
        orderDateTv.text = item.ctime
        val priceTv = helper.getView<TextView>(R.id.item_goods_order_price)
        priceTv.text = item.nums
        helper.setGone(R.id.iv_question,!TextUtils.isEmpty(item.bizId))

    }

}
